#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main() {
    long long a, b;
    while (scanf("%lld %lld", &a, &b) != EOF)
    { 
        int i = 1;
        while (1)
        {
            if (a * i % b == 0)
            {
                printf("%lld\n", a * i);
                break;
            }
            else
                i++;
        }
    }
    return 0;
}